package com.ygqh.baby.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ygqh.baby.model.YgProvinceModel;
import com.ygqh.baby.model.YgUserAddressModel;
import com.ygqh.baby.po.YgUserAddress;
import com.ygqh.baby.po.YgUserAddressExample;

public interface YgUserAddressMapper {
	int countByExample(YgUserAddressExample example);

	int deleteByExample(YgUserAddressExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgUserAddress record);

	int insertSelective(YgUserAddress record);

	List<YgUserAddress> selectByExample(YgUserAddressExample example);

	YgUserAddress selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgUserAddress record, @Param("example") YgUserAddressExample example);

	int updateByExample(@Param("record") YgUserAddress record, @Param("example") YgUserAddressExample example);

	int updateByPrimaryKeySelective(YgUserAddress record);

	int updateByPrimaryKey(YgUserAddress record);

	int countSuper(String q);

	List<YgUserAddressModel> selectSuper(@Param("userId") Long userId, @Param("userAddressId") Long userAddressId);

	List<YgProvinceModel> findCityList();

}
